﻿#region

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace XXS.Common.BaseModel
{
    /// <summary>
    ///     基础模型
    /// </summary>
    public interface IBaseModel
    {
        /// <summary>
        ///     主键
        /// </summary>
        [Key]
        int Id { get; set; }

        /// <summary>
        ///     创建时间
        /// </summary>
        DateTime CreateDateTime { get; set; }

        /// <summary>
        ///     创建者
        /// </summary>
        string Creator { get; set; }

        /// <summary>
        ///     更新时间
        /// </summary>
        DateTime? UpdateDateTime { get; set; }

        /// <summary>
        ///     更新者
        /// </summary>
        string Updater { get; set; }

        /// <summary>
        ///     扩展数据
        /// </summary>
        string Data { get; set; }
    }
}